package xuanzhen.pro.service;

import java.util.List;

import xuanzhen.pro.pojo.Relay;
import xuanzhen.wx.pojo.WxUserMsg;

public interface RelayService {
	/**
	 * 新增
	 */
	String addRelay(Relay relay)throws Exception;
	/**
	 * 接接力单
	 */
	void acceptRelay(Relay relay)throws Exception;
	/**
	 * 查询接力单
	 */
	Relay selectRelayByRelayNo(String relayNo)throws Exception;
	/**
	 * 查询接力单
	 */
	List<Relay> selectAll()throws Exception;
	List<Relay> selectByPageNo(int pageNo)throws Exception;
	int countRecords()throws Exception;
	/**
	 * 修改接力单
	 */
	Relay updateRelay(Relay relay)throws Exception;
	/**
	 * 存储微信用户信息
	 */
	void saveWxUser(WxUserMsg user)throws Exception;
	/**
	 * 查询微信信息
	 * @return
	 * @throws Exception
	 */
	WxUserMsg selectWxUserByOpenid(String openid)throws Exception;
}
